home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / var / lib / python-support / python2.6 / rdflib / sparql / bison / Triples.pyc (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2009-04-20  |  1.5 KB  |  33 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4.  
  5. class PropertyValue(object):
  6.     
  7.     def __init__(self, property, objects):
  8.         self.property = property
  9.         self.objects = objects
  10.  
  11.     
  12.     def __repr__(self):
  13.         return '%s(%s)' % (self.property, self.objects)
  14.  
  15.  
  16.  
  17. class ParsedConstrainedTriples(object):
  18.     '''
  19.     A list of Resources associated with a constraint
  20.     '''
  21.     
  22.     def __init__(self, triples, constraint):
  23.         self.triples = triples
  24.         self.constraint = constraint
  25.  
  26.     
  27.     def __repr__(self):
  28.         if not self.constraint or ' %s' % self.constraint:
  29.             pass
  30.         return '%s%s' % (self.triples, '')
  31.  
  32.  
  33.